#!/usr/bin/env node

const pi = Math.PI;

module.exports = (r) => {
  function circumference(){
    return pi*2*r;
  }

  function area(){
    return pi*r*r;
  }

  return{
    area:area,
    circumference:circumference
  };
};

try{
  console.log(module);
}catch(e){
  console.error('something wrong!');
}
